namespace eg._enum;

public class Eg_Enum
{
    private enum Enum
    {
        mon = 1,
        tue,
        wed,
        thu,
        fri,
        sat,
        sun
    };
    public enum Gender // enum默认是private
    {
        Male = 1,
        Female,
        Transgender
    }
    public static void PrintEnum()
    {
        Console.WriteLine("{0} is {1}", Enum.sun, (int)Enum.sun);
        string? _str = System.Enum.GetName(Enum.wed);
        Console.WriteLine("Week is " + _str);
    }
}